home *** CD-ROM | disk | FTP | other *** search
/ Aminet 34 / Aminet 34 (2000)(Schatztruhe)[!][Dec 1999].iso / Aminet / util / cli / VersCheckGUI.lha / VersCheckGUI / Install < prev    next >
Encoding:
Text File  |  1999-10-17  |  6.5 KB  |  308 lines

  1. ; $VER: VersCheck-Installerscript V 1.0 (16.10.1999) english
  2. ; Installer script to install/update VersCheckGUI
  3. ; written by Michaela Prüß
  4.  
  5. ( complete 0 )
  6. ( user 2 )
  7.  
  8. ;=============================================================================
  9. ; output and help
  10.  
  11. ( set @abort-button "Abort" )
  12.  
  13. ( set #bad-kick    ( cat "Need KickStart 2.0 or higher" ) )
  14.  
  15. ( set #inst-1 ( cat "Copy file..." ) )
  16.  
  17. ( set #inst-1inf ( cat "Copy icon..." ) )
  18.  
  19. ( set #confirm
  20.   (    cat "\nInstall VersCheckGUI on harddisk."
  21.         "\n\nPlease choose your CPU type:"
  22. ) )
  23.  
  24. ( set #confirm-help
  25.   (    cat "\nVersCheckGUI will be installed in a later choosen"
  26.         "\ndrawer."
  27.         "\nFirst set the cpu-version that you want to be"
  28.         "\ninstalled!"
  29.         "\n\nMichaela Prüß, 16.10.1999\n"
  30. ) )
  31.  
  32. ( set #docprompt
  33.   ( cat "Path for the document's.\n"
  34.         "A drawer 'VersCheckGuide' will be added there!"
  35. ) )
  36.  
  37. ( set #dochelp
  38.   (    cat "Drawer for the documentation.\n"
  39. ) )
  40.  
  41. ( set #fontprompt
  42.   ( cat "Install xen.font into fonts: drawer?\n"
  43. ) )
  44.  
  45. ( set #fonthelp
  46.   (    cat "\nDo you want to install the xen.font to your"
  47.         "\nfonts: drawer?\n"
  48.         "\nThis font is needed for VersCheckGUI!\n"
  49. ) )
  50.  
  51. ( set #confirm-1 ( cat "68000"                ) )
  52. ( set #confirm-2 ( cat "68010"                ) )
  53. ( set #confirm-3 ( cat "68020 / 68881"        ) )
  54. ( set #confirm-4 ( cat "68030 / 68882"        ) )
  55. ( set #confirm-5 ( cat "68040 / FPU 040"      ) )
  56. ( set #confirm-6 ( cat "68060 / FPU 060"      ) )
  57. ( set #confirm-7 ( cat "PowerPC with PowerUp" ) )
  58. ( set #confirm-8 ( cat "PowerPC with Warp-OS" ) )
  59.  
  60. ( set #askdir
  61.   ( cat "Select path for the programfile."
  62.         "\nUse the drawer where VersCheck is installed!"
  63.         "\nNo new drawer will be added!"
  64. ) )
  65.  
  66. ( set #askdir-help
  67.   ( cat "Choose the location for installing"
  68.         "\nVersCheckGUI."
  69. ) )
  70.  
  71. ( set #ready
  72.   ( cat "\nEnd of installation!\n"
  73.         "\nVersCheckGUI is complete installed and ready for"
  74.         "\nusage!\n"
  75. ) )
  76.  
  77. ( set #first
  78.   ( cat "\nWelcome to the installation of\nVersCheckGUI!\n\n"
  79.         "(c) 1998, 1999 by Michaela Prüß"
  80.         "\n\nVersCheckGUI need VersCheck to work!\n"
  81. ) )
  82.  
  83. ;=============================================================================
  84. ; Kick 2.x or higher?
  85.  
  86. ( complete 1 )
  87.  
  88. ( if ( < ( / ( getversion )    65536 ) 37 ) ( ( abort #bad-kick ) ) )
  89.  
  90. ( onerror
  91.   (
  92.     ( if ( > @ioerr 0 )
  93.       ( message ( cat "\n ERROR CODE: " @ioerr "\n\n" ) )
  94.     )
  95. ) )
  96.  
  97. ( message #first )
  98.  
  99. ( complete 5 )
  100.  
  101. ( if ( patmatch "68000" ( database "cpu" ) )
  102.   ( ( set #cpu 0 ) )
  103. )
  104. ( if ( patmatch "68010" ( database "cpu" ) )
  105.   ( ( set #cpu 1 ) )
  106. )
  107. ( if ( patmatch "68020" ( database "cpu" ) )
  108.   ( ( set #cpu 2 ) )
  109. )
  110. ( if ( patmatch "68030" ( database "cpu" ) )
  111.   ( ( set #cpu 3 ) )
  112. )
  113. ( if ( patmatch "68040" ( database "cpu" ) )
  114.   ( ( set #cpu 4 ) )
  115. )
  116. ( if ( patmatch "68060" ( database "cpu" ) )
  117.   ( ( set #cpu 5 ) )
  118. )
  119.  
  120. ( set action
  121.   ( askchoice
  122.     ( default #cpu          )
  123.     ( prompt  #confirm      )
  124.     ( help    #confirm-help )
  125.     ( choices #confirm-1
  126.               #confirm-2
  127.               #confirm-3
  128.               #confirm-4
  129.               #confirm-5
  130.               #confirm-6
  131.               #confirm-7
  132.               #confirm-8
  133. ) ) )
  134.  
  135. ( complete 10 )
  136.  
  137. ( set name
  138.   ( askdir
  139.     ( prompt  #askdir      )
  140.     ( help    #askdir-help )
  141.     ( default "c:"         )
  142.     ( disk                 )
  143. ) )
  144.  
  145. ( complete 20 )
  146.  
  147. ( user 0 )
  148.  
  149. ( if ( = action 0 )
  150.   ( ( copyfiles
  151.       (    prompt  #inst-1           )
  152.       ( dest    name           )
  153.       ( source  "VersCheckGUI" )
  154.       ( newname "VersCheckGUI" )
  155.       (    infos                  )
  156. ) ) )
  157.  
  158. ( if ( = action 1 )
  159.   ( ( copyfiles
  160.       (    prompt  #inst-1               )
  161.       ( dest    name               )
  162.       (    source  "VersCheckGUI.010" )
  163.       (    newname "VersCheckGUI"       )
  164.       (    infos                        )
  165. ) ) )
  166.  
  167. ( if ( = action 2 )
  168.   ( ( copyfiles
  169.       (    prompt  #inst-1               )
  170.       (    dest    name               )
  171.       (    source  "VersCheckGUI.020" )
  172.       ( newname "VersCheckGUI"       )
  173.       (    infos                       )
  174. ) ) )
  175.  
  176. ( if ( = action 3 )
  177.   ( ( copyfiles
  178.       (    prompt  #inst-1               )
  179.       ( dest    name               )
  180.       (    source  "VersCheckGUI.030" )
  181.       (    newname "VersCheckGUI"       )
  182.       (    infos                       )
  183. ) ) )
  184.  
  185. ( if ( = action 4 )
  186.   ( ( copyfiles
  187.       ( prompt  #inst-1               )
  188.       (    dest    name               )
  189.       (    source  "VersCheckGUI.040" )
  190.       (    newname "VersCheckGUI"       )
  191.       ( infos                      )
  192. ) ) )
  193.  
  194. ( if ( = action 5 )
  195.   ( ( copyfiles
  196.       ( prompt  #inst-1               )
  197.       (    dest    name               )
  198.       (    source  "VersCheckGUI.060" )
  199.       (    newname "VersCheckGUI"       )
  200.       ( infos                      )
  201. ) ) )
  202.  
  203. ( if ( = action 6 )
  204.   ( ( copyfiles
  205.       ( prompt  #inst-1               )
  206.       (    dest    name               )
  207.       (    source  "VersCheckGUI.elf" )
  208.       (    newname "VersCheckGUI"       )
  209.       ( infos                      )
  210. ) ) )
  211.  
  212. ( if ( = action 7 )
  213.   ( ( copyfiles
  214.       ( prompt  #inst-1               )
  215.       (    dest    name               )
  216.       (    source  "VersCheckGUI.wos" )
  217.       (    newname "VersCheckGUI"       )
  218.       ( infos                      )
  219. ) ) )
  220.  
  221. ( complete 25 )
  222.  
  223. ( copylib
  224.   ( prompt  #inst-1                 )
  225.   ( dest    "Libs:"                 )
  226.   ( source  "Libs/intuisup.library" )
  227. )
  228.  
  229. ( complete 30 )
  230.  
  231. ( copyfiles
  232.   (    prompt  #inst-1inf         )
  233.   ( dest    name             )
  234.   ( source  "VersCheckGUI.info" )
  235.   ( newname "VersCheckGUI.info" )
  236.   (    infos )
  237. )
  238.  
  239. ( user 2 )
  240.  
  241. ( complete 40 )
  242.  
  243. ( set dnam
  244.   ( askdir
  245.     ( prompt  #docprompt )
  246.     ( help    #dochelp   )
  247.     ( default "help:"    )
  248.     ( disk               )
  249. ) )
  250.  
  251. ( complete 50 )
  252.  
  253. ( copyfiles
  254.   ( prompt #inst-1                          )
  255.   (    dest   ( tackon dnam "VersCheckGuide" ) )
  256.   (    source "ReadMe.1st"                     )
  257.   ( infos                                   )
  258. )
  259.  
  260. ( complete 60 )
  261.  
  262. ( copyfiles
  263.   ( prompt #inst-1                            )
  264.   (    dest   ( tackon dnam "VersCheckGuide" ) )
  265.   (    source "Doku/VersCheckGUI.ReadMe"          )
  266.   ( infos                                   )
  267. )
  268.  
  269. ( complete 70 )
  270.  
  271. ( copyfiles
  272.   ( prompt #inst-1                            )
  273.   (    dest   ( tackon dnam "VersCheckGuide" ) )
  274.   (    source "Doku/VersCheckGUI.doc"          )
  275.   ( infos                                   )
  276. )
  277.  
  278. ( complete 80 )
  279.  
  280. ( set action
  281.   ( askchoice
  282.     ( prompt  #fontprompt )
  283.     ( help    #fonthelp   )
  284.     ( choices "Yes"
  285.               "No"
  286. ) ) )
  287.  
  288. ( complete 90 )
  289.  
  290. ( if ( = action 0 )
  291.   ( copyfiles
  292.     ( prompt  #inst-1  )
  293.     ( dest    "Fonts:" )
  294.     ( source  "Fonts"  )
  295.     ( pattern "#?"     )
  296. ) )
  297.  
  298. ( message #ready )
  299.  
  300. ( complete 100 )
  301.  
  302. ( exit ( quiet ) )
  303.  
  304.  
  305. ;=============================================================================
  306. ; we never get here, but this keeps the Installer from being a pest
  307. ( welcome )
  308.